package vip.geeker.iotms.persistance.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.*;

import java.io.Serializable;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class DeviceInfo extends PageParam implements Serializable {
    private static final long serialVersionUID = 7060143656147936183L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String no;

    private String location;

    private Integer typeId;

    private String warnStatus;

    private Boolean online;

    private Integer prevNodeId;

    private Integer nextNodeId;

    private String name;

    @TableField(exist = false)
    private String prevNodeName;

    @TableField
    private String nextNodeName;

    @TableField(exist = false)
    private String typeName;
}